package interface_test.animal;

public class Test {
    public static void main(String[] args) {
        //抽象类是不能直接实例化对象的，需要向上转型
        IRun run = new mouse();
        IRun run1 = new Dog();
        ISWim sWim = new Dog();
        IRun run2 = new Dog();
        ISWim sWim1 = new Dog();
        IFIy fly = new Duck();
        run.run();
        run1.run();
        sWim.swim();
        fly.fly();
        run2.run();
        sWim1.swim();


    }

    void fun(Object obj){

    }

}
